Skip to main content

DealsApi

All URIs are relative to **

MethodHTTP requestDescription
dealEstimatePostPOST /deal/estimateEstimate the cost of a deal
dealInfoDealidGetGET /deal/info/{dealid}Get Deal Info
dealProposalPropcidGetGET /deal/proposal/{propcid}Get Proposal
dealQueryMinerGetGET /deal/query/{miner}Query Ask
dealStatusByProposalPropcidGetGET /deal/status-by-proposal/{propcid}Get Deal Status by PropCid
dealStatusMinerPropcidGetGET /deal/status/{miner}/{propcid}Deal Status
dealTransferInProgressGetGET /deal/transfer/in-progressTransfer In Progress
dealsFailuresGetGET /deals/failuresGet storage failures for user
dealsMakeMinerPostPOST /deals/make/{miner}Make Deal
dealsStatusDealGetGET /deals/status/{deal}Get Deal Status
publicDealsFailuresGetGET /public/deals/failuresGet storage failures
publicMinersStorageQueryMinerGetGET /public/miners/storage/query/{miner}Query Ask

dealEstimatePost

Estimate the cost of a deal

This endpoint estimates the cost of a deal

Example

 dealEstimatePost

Parameters

NameTypeDescriptionNotes
bodyMain.estimateDealBodyThe size of the deal in bytes, the replication factor, and the duration of the deal in blocks

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dealInfoDealidGet

Get Deal Info

This endpoint returns the deal info for a deal

Example

 dealInfoDealidGet dealid=value

Parameters

NameTypeDescriptionNotes
dealidintegerDeal ID

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dealProposalPropcidGet

Get Proposal

This endpoint returns the proposal for a deal

Example

 dealProposalPropcidGet propcid=value

Parameters

NameTypeDescriptionNotes
propcidstringProposal CID

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dealQueryMinerGet

Query Ask

This endpoint returns the ask for a given CID

Example

 dealQueryMinerGet miner=value

Parameters

NameTypeDescriptionNotes
minerstringCID

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dealStatusByProposalPropcidGet

Get Deal Status by PropCid

Get Deal Status by PropCid

Example

 dealStatusByProposalPropcidGet propcid=value

Parameters

NameTypeDescriptionNotes
propcidstringPropCid

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dealStatusMinerPropcidGet

Deal Status

This endpoint returns the status of a deal

Example

 dealStatusMinerPropcidGet miner=value propcid=value

Parameters

NameTypeDescriptionNotes
minerstringMiner
propcidstringProposal CID

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dealTransferInProgressGet

Transfer In Progress

This endpoint returns the in-progress transfers

Example

 dealTransferInProgressGet

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dealsFailuresGet

Get storage failures for user

This endpoint returns a list of storage failures for user

Example

 dealsFailuresGet

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dealsMakeMinerPost

Make Deal

This endpoint makes a deal for a given content and miner

Example

 dealsMakeMinerPost miner=value

Parameters

NameTypeDescriptionNotes
minerstringMiner
dealRequeststringDeal Request

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

dealsStatusDealGet

Get Deal Status

This endpoint returns the status of a deal

Example

 dealsStatusDealGet deal=value

Parameters

NameTypeDescriptionNotes
dealintegerDeal ID

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

publicDealsFailuresGet

Get storage failures

This endpoint returns a list of storage failures

Example

 publicDealsFailuresGet

Parameters

This endpoint does not need any parameter.

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

publicMinersStorageQueryMinerGet

Query Ask

This endpoint returns the ask for a given CID

Example

 publicMinersStorageQueryMinerGet miner=value

Parameters

NameTypeDescriptionNotes
minerstringCID

Return type

(empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not Applicable
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]